import 'package:go_router/go_router.dart';

import 'pages/box_demo.dart';
import 'pages/com_page.dart';
import 'pages/first_demo.dart';
import 'pages/home_page.dart';
import 'pages/image_list_page.dart';
import 'pages/login_page.dart';
import 'pages/wechat_pay_page.dart';

final router = GoRouter(routes: [
  GoRoute(
    path: "/",
    builder: (context, state) => HomePage(),
  ),
  GoRoute(
    path: "/firstDemo",
    builder: (context, state) => const FirstDemoPage(
      title: 'Flutter Demo Home Page',
    ),
  ),
  GoRoute(
    path: "/boxPage",
    builder: (context, state) => const BoxPage(),
  ),
  GoRoute(
    path: "/commonPage",
    builder: (context, state) => const CommonPage(),
  ),
  GoRoute(
    path: "/imageListPage",
    builder: (context, state) => const ImageListPage(),
  ),
  GoRoute(
    path: "/weChatPayPage",
    builder: (context, state) => WeChatPayPage(),
  ),
  GoRoute(
    path: "/loginPage",
    builder: (context, state) => LoginPage(),
  ),
]);
